const { Schema } = require('./config')
const UserSchema = new Schema(
  {
    username: String,
    password: String,
    number: {type:String,default:'0000'},
    role: {
      type: String,
      default: 1
    },
    avatar: {
      type: String,
      default: '/avatar/default.jpg'
    },
    remark: { type: String, default: '' }
  },
  { versionKey: false }
)

module.exports = UserSchema
